import request from '@/utils/request'
// 引入qs库，qs.stringify()可以将对象转成字符串形式，这是因为后台接口的要求，一般来说axios传入data对象即可
import qs from 'qs'

export function getFirealarmList () {
  return request({
    url: 'fireAlarm/getAll',
    method: 'get',
  })
}

export function deleteFireId (id) {
  return request({
    url: `fireAlarm/${id}`,
    method: 'delete',
  })
}

export function getPeoalarmList () {
    return request({
      url: 'peopleAlarm/getAll',
      method: 'get',
    })
  }

export function deletePeoId (id) {
  return request({
    url: `fireAlarm/${id}`,
    method: 'delete',
  })
}
export function getEdgealarmList () {
return request({
    url: 'edgeAlarm/getAll',
    method: 'get',
})
}

export function deleteEdgeId (id) {
  return request({
    url: `fireAlarm/${id}`,
    method: 'delete',
  })
}